import java.util.Scanner;

public class ShowCurrentTimeWithZone {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.print("请输入相对于 GMT 的时区偏移量（小时）：");
        int offset = input.nextInt();

        // 获取当前毫秒值并调整偏移
        long totalMillis = System.currentTimeMillis();
        long totalSeconds = totalMillis / 1000;
        long currentSecond = totalSeconds % 60;
        long totalMinutes = totalSeconds / 60;
        long currentMinute = totalMinutes % 60;
        long totalHours = totalMinutes / 60;
        long currentHour = (totalHours + offset) % 24;

        System.out.printf("当前时间为 %d:%d:%d%n",
                          currentHour, currentMinute, currentSecond);
        input.close();
    }
}